package com.toddding.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toddding.domain.File;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FileMapper extends BaseMapper<File> {
    /**
     * 分页查询文件
     *
     * @param keyWord
     */
    List<File> selectFiles(@Param("keyWord")String keyWord);

    /**
     * 批量新增文件
     *
     * @param fileList
     */
    void batchInsert(@Param("files") List<File> fileList);

}